<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <%@include file="/resources/commons/basejs.jsp" %>
</head>
<body>
    <div style="width: 400px;padding-top: 10px;">
        <form id="form_submit" class="layui-form">
            <input type="hidden" name="id">
            <div class="layui-form-item">
                <%--<label class="layui-form-label">设备ID</label>--%>
                <%--<div class="layui-input-inline">--%>
                    <%--<input type="text" name="name" lay-verify="required" placeholder="请输入设备ID" class="layui-input" value="">--%>
                <%--</div>--%>
                    <div class="layui-inline">
                        <label class="layui-form-label">设备ID</label>
                        <div class="layui-input-inline">
                            <select name="name" id="name" lay-verify="required" lay-search="">

                            </select>
                        </div>
                    </div>



                <%--<label class="layui-form-label">护工医保</label>--%>
                <%--<div class="layui-input-inline">--%>
                    <%--<input type="text" name="hgid" lay-verify="required" placeholder="请输入护工医保" class="layui-input" value="">--%>
                <%--</div>--%>
                    <div class="layui-inline">
                        <label class="layui-form-label">护工医保</label>
                        <div class="layui-input-inline">
                            <select name="hgid" id="hgid" lay-verify="required" lay-search="">

                            </select>
                        </div>
                    </div>


                <%--<label class="layui-form-label">护工名字</label>--%>
                <%--<div class="layui-input-inline">--%>
                    <%--<input type="text" name="hgname" lay-verify="required" placeholder="请输入护工姓名" class="layui-input" value="">--%>
                <%--</div>--%>
                    <div class="layui-inline">
                        <label class="layui-form-label">护工名字</label>
                        <div class="layui-input-inline">
                            <select name="hgname" id="hgname" lay-verify="required" lay-search="">

                            </select>
                        </div>
                    </div>

                    <div class="layui-inline">
                        <label class="layui-form-label">老人医保</label>
                        <div class="layui-input-inline">
                            <select name="lrid" id="lrid" lay-verify="required" lay-search="">

                            </select>
                        </div>
                    </div>



                <%--<label class="layui-form-label">老人名字</label>--%>
                <%--<div class="layui-input-inline">--%>
                    <%--<input type="text" name="lrname" lay-verify="required" placeholder="请输入老人姓名" class="layui-input" value="">--%>
                <%--</div>--%>

                    <div class="layui-inline">
                        <label class="layui-form-label">老人名字</label>
                        <div class="layui-input-inline">
                            <select name="lrname" id="lrname" lay-verify="required" lay-search="">

                            </select>
                        </div>
                    </div>

            </div>
            <div class="layui-form-item" style="display: none">
                <button type="button" lay-submit lay-filter="btn_form_submit" id="btn_form_submit" class="layui-btn layui-btn-lg"></button>
            </div>
        </form>
    </div>
</body>
<script>
    var modleName = "${ctxPath}/shebeilog";
    //用layui加载数据
    function onLayuiInit() {
        //加载分类下拉选择框
        loadOptionList({
            url:'${ctxPath}/shebei/getList',
            elementId:'name',
            selectedValue:currentItemData.name
        });
        loadOptionList2({
            url:'${ctxPath}/staff/getList',
            elementId:'hgid',
            selectedValue:currentItemData.hgid
        });
        loadOptionList3({
            url:'${ctxPath}/staff/getList',
            elementId:'hgname',
            selectedValue:currentItemData.hgname
        });
        loadOptionList4({
            url:'${ctxPath}/elderInfo/getList',
            elementId:'lrid',
            selectedValue:currentItemData.lrid
        });
        loadOptionList5({
            url:'${ctxPath}/elderInfo/getList',
            elementId:'lrname',
            selectedValue:currentItemData.lrname
        });
        //绑定监听表单提交事件
        bindSubmit(modleName,'update','btn_form_submit','form_submit');
    }
</script>
</html>














